//完成与角色操作相关的路由
const express = require('express');
const roleController = require('../controller/roleController.js')

const router = express.Router();


router.get('/roles',roleController.getAllRoles)
.get('/roles/tree',roleController.getAllRolePerm)
.get('/roles/:rid/perm/:pid',roleController.delOnePerm)
.get('/rights/tree',roleController.getPermByRid)
.post('/roles/:rid',roleController.updatePerm)
module.exports = router;